<template>
	<view class="paySuccess">
		<view class="img-desc">
			<image src="../../static/icon/image_115.png" mode=""></image>
			<view class="desc">
				{{$t("payCancel.title")}}
			</view>
		</view>
		
		<view class="footer">
			<view class="go-where" @tap="myOrder">
				{{$t("payCancel.lookOrder")}}
			</view>
			
			<view class="go-where" @tap="goHome">
				{{$t("payCancel.goHome")}}
			</view>
			
			<view class="question">
				{{$t("payCancel.hint1")}}<text style="color: #009EE3;">{{$t("payCancel.hint2")}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			myOrder() {
				uni.redirectTo({
					url:"/pages/myOrder/myOrder"
				})
			},
			goHome() {
				uni.switchTab({
					url:'/pages/home/home'
				})
			}
		},
		onReady() {
			uni.setNavigationBarTitle({ title: this.$t("payCancel.title")});
		},
		onBackPress(e) {
			uni.switchTab({
				url: "/pages/home/home"
			})
			return true;
		},
	}
</script>

<style>
	page {
		background-color: #F5F5F5;
	}
</style>
<style lang="scss" scoped>
	.img-desc {
		padding-top: 500rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		
		image {
			width: 130rpx;
			height: 130rpx;
			margin: 0 auto;
		}
		
		.desc {
			margin-top: 56rpx;
			font-family: 'PingFang SC';
			font-style: normal;
			font-weight: 700;
			font-size: 50rpx;
			text-align: center;
		}
	}
	
	.footer {
		font-family: 'PingFang SC';
		font-style: normal;
		font-weight: 550;
		font-size: 36rpx;
		color: #858585;
		position: absolute;
		bottom: 40rpx;
		width: 100%;
		
		.go-where {
			background: #FFFFFF;
			box-shadow: 0px 2rpx 16rpx rgba(0, 0, 0, 0.1);
			border-radius: 20rpx;
			margin: 0 24rpx;
			margin-bottom: 30rpx;
			height: 88rpx;
			line-height: 88rpx;
			text-align: center;
		}
		
		.question {
			text-align: center;
		}
	}
</style>